import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import App from './App.tsx'
// 导入KaTeX样式
import 'katex/dist/katex.min.css'
// 导入应用主样式
import './index.css'

// 创建根节点并渲染应用
const container = document.getElementById('root')
if (!container) {
  throw new Error('Root element not found')
}

const root = createRoot(container)
root.render(
  <StrictMode>
    <App />
  </StrictMode>,
)
